package com.fangcun.mapper;

import java.util.List;

import com.fangcun.bean.api.agent.capital.request.AgentCapitalRequest;
import com.fangcun.bean.api.user.response.UserWalletResponse;
import com.fangcun.entity.UserTransactionFlow;

public interface UserTransactionFlowMapper {
    int deleteByPrimaryKey(Long id);

    int insert(UserTransactionFlow record);

    int insertSelective(UserTransactionFlow record);

    UserTransactionFlow selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(UserTransactionFlow record);

    int updateByPrimaryKey(UserTransactionFlow record);
    
    List<UserTransactionFlow> listForApi(AgentCapitalRequest request);
    //总收入
    UserWalletResponse totalRevenue(Long agentId);
}